package de.slothsoft.wasbinich.core.util;

import java.util.Locale;

public final class CommonUtil {

    public static String createLanguagesString(Locale[] supportedLanguages) {
	StringBuilder sb = new StringBuilder();
	for (Locale supportedLanguage : supportedLanguages) {
	    if (sb.length() != 0) {
		sb.append(", "); //$NON-NLS-1$
	    }
	    sb.append(supportedLanguage.getDisplayLanguage());
	}
	return sb.toString();
    }

    private CommonUtil() {
	// hit me baby one more time
    }
}
